<template>
  <div class="mytofun">
    <slot name="left" @click="handlerLeft"></slot>
    <div>{{ title }}</div>
    <slot name="right" @click="handlerRight"></slot>
  </div>
</template>

<script>
export default {
  props: ["title"],
  methods: {
    handlerLeft(e) {
      this.$emit("click", e);
    },
    handlerRight(e) {
      this.$emit("click", e);
    },
  },
};
</script>

<style lang="less" scoped>
.mytofun {
  // width: 100%;
  display: flex;
  height: 50px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  border-bottom: 1px solid #ccc;
  > div:nth-child(1),
  div:nth-child(3) {
    padding: 0 10px;
  }
  > div:nth-child(2) {
    font-weight: bold;
    text-align: center;
  }
  .van-icon-home-o::before {
    font-size: 25px;
    color: red;
  }
  .van-icon-arrow-left::before {
    font-size: 25px;
  }
  /deep/ .van-uploader__upload {
    width: 70 /360 * 100vw;
    height: 70 /360 * 100vw;
    border-radius: 50%;
  }
  /deep/ .van-uploader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-47%, -45%);
    opacity: 0;
    // transform: translate(-50%, -50%);
  }
}
</style>